import request from '@/utils/request'

// 查询领料返回列表
export function listRevokepick(query) {
  return request({
    url: '/mes/revokepick/list',
    method: 'get',
    params: query
  })
}

// 查询领料返回详细
export function getRevokepick(id) {
  return request({
    url: '/mes/revokepick/' + id,
    method: 'get'
  })
}

// 新增领料返回
export function addRevokepick(data) {
  return request({
    url: '/mes/revokepick',
    method: 'post',
    data: data
  })
}

// 修改领料返回
export function updateRevokepick(data) {
  return request({
    url: '/mes/revokepick',
    method: 'put',
    data: data
  })
}

// 删除领料返回
export function delRevokepick(id) {
  return request({
    url: '/mes/revokepick/' + id,
    method: 'delete'
  })
}

//入库
export function inHou(data) {
  return request({
    url: '/mes/revokepick/inHou',
    method: 'post',
    data:data
  })
}